import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "placeuselog" })
export class PlaceUseLog extends EntityObjectType<PlaceUseLog>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    useMode: string;

    @Define.Column({
        DataType: Define.DataType.BIGINT,
    })
    beginTime: number;

    @Define.Column({
        DataType: Define.DataType.BIGINT,
    })
    endTime: number;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    orgId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    note: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    placeId: string;
    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    placeName: string;
    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    placeTypeId: string;
    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    placeTypeName: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    useObjectId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    useObjectType: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    dataRegisterId: string;
}